<template>
    <div>home:{{ stores.name }}</div>
    <button @click="goLogin">跳转登录页面</button>
</template>

<script lang="ts" setup>
import { useRouter } from "vue-router";
import { UseStore } from '@/store/modules/UseStore'
const router = useRouter()
const stores = UseStore()

const goLogin =  () => {
    router.push('/login')
}
</script>

<style></style>